package com.fronde.google.timecapture;

import java.io.IOException;
import javax.servlet.http.*;

@SuppressWarnings("serial")
public class GoogleHub_Time_CaptureServlet extends HttpServlet {
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		resp.setContentType("text/plain");
		resp.getWriter().println("Hello, world");
		
		if (req.getUserPrincipal() != null) {
			resp.getWriter().println(" " + req.getUserPrincipal().getName());	
		} else {
			resp.getWriter().println(" not authenticated");
		}
		
	}
}
